package Entities;

/**
 *
 * @author 647_2
 */
public class Composition extends BaseEntity {

    // TODO Добавить конфиг

    private String name;
    private Double duration;

    public Composition(){
        super();
        name = null;
        duration = null;
    }

    public Composition(int ID, String name, Double duration){
        super(ID, "Сущность композиции");
        this.name = name;
        this.duration = duration;
    }

    public Composition(String name, Double duration){
        super("Сущность композиции");
        this.name = name;
        this.duration = duration;
    }

    public Double get_duration() {
        return this.duration;
    }

    public void set_duration(Double duration) {
        this.duration = duration;
    }

    public String get_name() {
        return this.name;
    }

    public void set_name(String name) {
        this.name = name;
    }
}
